package com.yisa.kuang.mapper;

import com.github.pagehelper.Page;
import com.github.pagehelper.PageHelper;
import com.yisa.kuang.pojo.grade;
import com.yisa.kuang.pojo.kuang;
import com.yisa.kuang.service.StudentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class StudentServiceImp implements StudentService {
    @Autowired
    private StudentMapper mapper;

    @Override
    public List<kuang> setAllStudent() {
        return mapper.setAllStudent();
    }

    @Override
    public int addStudent(kuang kuan) {
        return mapper.addStudent(kuan);
    }

    @Override
    public int detStudent(Integer id) {
        return mapper.detStudent(id);
    }

    @Override
    public int updateStudent(kuang kuan) {
        return mapper.updateStudent(kuan);
    }

    @Override
    public kuang findStudent(Integer id) {
        return mapper.findStudent(id);
    }

    @Override
    public  List<kuang> findStudengmr(kuang kuan) {
        return mapper.findStudengmr(kuan);
    }


}
